package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"lyt_film/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/film/upload", &controllers.FilmController{}, "post:Upload")
	beego.Router("/film/add", &controllers.FilmController{}, "post:Add")
	beego.Router("/film/list", &controllers.FilmController{}, "get:List")
	beego.Router("/film/delete", &controllers.FilmController{}, "get:Delete")
	beego.Router("/film/info", &controllers.FilmController{}, "get:Info")
}
